package service;

import dao.ShowImpl;
import entity.Equip;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("service")
public class ShowServiceImpl  implements  ShowService{
    public ShowImpl getShowdao() {
        return showdao;
    }

    public void setShowdao(ShowImpl showdao) {
        this.showdao = showdao;
    }
    @Autowired
    private ShowImpl showdao;
    public String get(){
        return  showdao.get();
    }
    public void updateEquip(Equip equip){
        equip.setName("紫色梦幻"+equip.getName());
        equip.setAttackPlus(equip.getAttackPlus()+6);
        equip.setDefencePlus(equip.getDefencePlus()+6);
        System.out.println( equip.getName()+"["+"速度增幅："+equip.getSpeedPlus()+"  攻击增幅："+equip.getAttackPlus()+"  防御增幅："+equip.getDefencePlus()+"]");
    }
}
